"""author: songzhiqiang
   data: 2021/10/22
   project: learn_code
"""
# a = "字符串拼接1"
# b = "字符串拼接2"
# print(a + b)
# print(''.join(a))
# print("{}{}".format(a,b))
# print(f"{a}{b}")
# print("%s%s"%(a,b))
#
# result = "%s%s"%(a,b)
# print(len(result))
# print(result[6])
#
# c =input("请输入字符串""\n")
# f = int(len(c))
# print(f"{c.replace('*',''):*>{f}}")
#
#
# c = "8*y*cali*china**it*soft*linux*python"
# d = c.count("*")
# print("*"*d + c.replace('*',''))

# a = float(input("请输入单价"))
# b = int(input("请输入数量"))
# print(f"总计为：{a*b}")
#
# a = int(input())
# b = int(input())
# print(a+b,a-b,a*b,a/b,a//b,a%b)
#
# c = 5
# a = int(input())
# print(f"c+=a:{c+a} c-=a:{c-a} c*=a{c*a} c/=a:{c/a} c//=a:{c//a} c%=a:{c%a} c**=a:{c**a}")


# str1 = "abcaaa"
# result = str1.startswith("abc") and "ok" or "error"
# print(result)



# a = 10
# b = a%2
# print(b == 0 or b == 1)

# a = 100
# print(a >100 and "true" or "fales")

import random
d = []
for i in range(12):
    b = random.randint(0,1)
    d.append(b)
print(f"亮灯结果：{d}")
c = random.randint(0,11)
if d[c] == 0:
    print(f"打中了第{c+1}个灯")
    print("游戏结果：true")
if d[c] == 1:
    print("没打到")
    print("游戏结果：false")






# import math
# a = int(input())
# b = int(input())
# c = int(input())
# if a>0 and b>0 and c>0:
#     if a+b>c and a+c>b and b+c>a:
#         p = (a + b + c) / 2
#         result = math.sqrt(p * (p - a) * (p - b) * (p - c))
#         print(result)
#     else:
#         print("边长小于等于零")
# else:
#     print("两边之和小于等于第三边")
#
